-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
translation/rotation gridding #192
Conversation
@karen-sy this looks great! I just played around with a bit and tried to add a visual to view the pose grids by displaying "axis arrows" at each grid point. Currently, it looks like the original pose is not at the center of the pose grid, but at the bottom of it. Could you please take a look at this and check if this is right, or if my visualization is erroneous? (It may well be...) If this is right, can you please change the gridding code to ensure the original pose is at the grid center? Also, it also looks like when the rotation grid has only 1 grid point, it ends up being rotated relative to the original pose, rather than having the same rotation to the original pose. This may again be an issue with my visualization, but if it is a real property of the pose grid, I think it would be better to ensure that with small rotation grids, we cover the original rotation exactly. |
This is likely from default |
I modified the gridding API such that every grid is guaranteed to have the original pose included:
Perf benchmark: Also, not exactly sure what you were exactly visualizing; could you toggle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@karen-sy this looks great! I moved the tests to the tests/
directory and added a docstring -- if this looks good to you and all the tests in tests/gen3d
are passing for you, please merge this to gen3d
!
Oops somehow I thought you merged the branch already! Thanks so much for doing the test refactoring. Merging! |
Implements
Which produces a uniform translation/rotation grid from a center pose. (Make small note that this is different from the old Bayes3D rotation gridding scheme based on Ben Zinberg's fibonacci lattice division.)
Script also contains a test for visually sanity checking the grid poses on rerun; this code can be moved out/deleted.
Perf benchmark with
jax.jit
:Time taken: 0.6721019744873047 milliseconds for 15625 poses